package com.mini.cn.goods.observer.message.ws;


import com.mini.cn.goods.config.MessageConfig;
import com.mini.cn.goods.io.netty.ws.ParameterMap;
import com.mini.cn.goods.io.netty.ws.WebSocketSession;

/**
 * Created with IntelliJ IDEA.
 * User: fly
 * Date: 2020-03-13
 * Time: 2:27 下午
 */
public class MessageFactory {

    public static SocketOpenMessage createSocketOpenMsg(WebSocketSession session, ParameterMap parameterMap) {
        SocketOpenMessage message = new SocketOpenMessage();
        message.parameterMap = parameterMap;
        message.session = session;
        message.messageId = MessageConfig.MessageType.SOCKETOPENSUCESS;
        return message;
    }


}
